<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
#viewmain{
	margin:auto;
	width:700px;
}
#book_subject1,#book_subject2{
	display:inline-block;
}
#book_subject1{
	width:100px;
}
#book_subject{
	width:430px;
	display:inline-block;
	border:2px solid #aaaaaa;
}
#book_mdate{
	width:255px;
	display:inline-block;
	border:2px solid #aaaaaa;
}
#book_content{
	width:695px;
	height:400px;
	border:2px solid #aaaaaa;
	
}
#book_subject3-1,#book_subject3-2,#book_subject3-3,#book_subject3-4,#book_btn{
	display:inline-block;
}
#book_btn{
	float:right;
}

</style>
<script>
function getId(id){ return document.getElementById(id) }
function init(){
	getId('btnlist').onclick=function(){
		location.href='MyHome.jsp?inc_content=./guest/list.jsp';
	}
	/* getId('btninsert').onclick=function(){
		location.href='index2.jsp?inc_content=./guest/insert_result.jsp';
	} */
}

</script>
</head>
<body>
<form id='viewmain' name='frm' method='post' action='MyHome.jsp?inc_content=./guest/insert_result.jsp'>

<div id='book_subject1'>
	<label>제목</label>
</div>
<div id='book_subject2'>
	<input type='text' name='subject' style='width:588px'>
</div>



<div id='book_content'><textarea cols='96' rows='26' name='content'>내용</textarea></div>
<div id='book_bot'>
<div id='book_subject3'>
	<div id='book_subject3-1'>아이디</div>
	<div id='book_subject3-2'><input type='text' name='mid'></div>
	<div id='book_subject3-3'>비밀번호</div>
	<div id='book_subject3-4'><input type='text'></div>
	<div id='book_btn'>
		<input type='button' id='btnlist' value='목록'>
		<input type='submit' id='btninsert' value='글쓰기'>
	</div>
</div>

</form>
<script>init();</script>
</body>
</html>